export default ( http ) => ({
	login (data = {}) {
		return http.request({
			method: 'POST',
			url: '/login',
			data
		})
	},
	home (query = {}) {
		return http.request({
			method: 'GET',
			url: '/home',
			params: query
		})
	},
	preview (query = {}) {
		return http.request({
			method: 'GET',
			url: '/preview',
			params: query
		})
	},
	send_vcode (query = {}) {
		return http.request({
			method: 'GET',
			url: '/send_vcode',
			params: query
		})
	},
	register (data = {}) {
		return http.request({
			method: 'POST',
			url: '/register',
			data
		})
	},
	forget (data = {}) {
		return http.request({
			method: 'POST',
			url: '/forget',
			data
		})
	},
	wechatInfo (data = {}) {
		return http.request({
			method: 'POST',
			url: '/wechat_info',
			data
		})
	},
	
	wechatShare (data = {}) {
		return http.request({
			method: 'POST',
			url: '/wechat_share',
			data
		})
	},
	
	wechatLogin (data = {}) {
		return http.request({
			method: 'POST',
			url: '/wechat_login',
			data
		})
	},
	wechatMpLogin (data = {}) {
		return http.request({
			method: 'POST',
			url: '/wechat_mp_login',
			data
		})
	},
	hotSearchs (query = {}) {
		return http.request({
			method: 'GET',
			url: '/hot_searchs',
			params: query
		})
	},
	
})